Skip to content

Add upload_type to Project #1707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Add upload_type to Project #1707

merged 1 commit into from
Jul 2, 2024

Conversation

vbrodsky
Copy link
Contributor

@vbrodsky vbrodsky commented Jul 1, 2024

Description

This PR replaces logic mirrored from the api in a custom method with an attribute set by the api directly. This makes it more reliable

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Document change (fix typo or modifying any markdown files, code comments or anything in the examples folder only)

All Submissions

  • Have you followed the guidelines in our Contributing document?
  • Have you provided a description?
  • Are your changes properly formatted?

New Feature Submissions

  • Does your submission pass tests?
  • Have you added thorough tests for your new feature?
  • Have you commented your code, particularly in hard-to-understand areas?
  • Have you added a Docstring?

Changes to Core Features

  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?
  • Have you updated any code comments, as applicable?

@vbrodsky vbrodsky requested a review from a team as a code owner July 1, 2024 20:05
@@ -145,8 +147,7 @@ def is_chat_evaluation(self) -> bool:
return self.media_type == MediaType.Conversational and self.editor_task_type == EditorTaskType.ModelChatEvaluation

def is_auto_data_generation(self) -> bool:
return self.media_type == MediaType.LLMPromptCreation or self.media_type == MediaType.LLMPromptResponseCreation or self.is_chat_evaluation(
)
return (self.upload_type == UploadType.Auto) is True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduntant, return self.upload == UploadType.Auto

Also not sure if it's needed, maybe the field is good enough instead of needing a function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-07-01 at 7 36 41 PM
this is what you get if you try to do it directly... our Field stuff is not real Bool. Also the method help to wrap it all and since I already have it in place, makes it work better

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adrian-chang I have updated as you suggested... this lint warning is invalid, I have verified in code self.upload_type is an Enum, not a Field

@vbrodsky vbrodsky force-pushed the VB/add-project-upload-type branch from 3f1fdcc to 71e85c7 Compare July 2, 2024 17:50
@vbrodsky vbrodsky force-pushed the VB/add-project-upload-type branch from 71e85c7 to adfb744 Compare July 2, 2024 17:51
@vbrodsky vbrodsky merged commit 259272c into develop Jul 2, 2024
18 of 22 checks passed
@vbrodsky vbrodsky deleted the VB/add-project-upload-type branch July 2, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants